export const USER_API = '/user/api/v1'

export const REDIRECT_URI = ''
export const APPID = ''
export const BASE_URL = process.env.VUE_APP_BASE_URL

export const subjectInfo = buildInfo(process.env.VUE_APP_SUBJECT)

function buildInfo(sj) {
  switch (sj) {
    case 'csxr':
      return {
        id: 'csxr',
        code: 'csxr_xcx',
        theme: "#fcaf4f",
        logo: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo.png",
        logo_authorize: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo_authorize.png",
        logo_login: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo.png",
        icon_shouye: "/static/images/tabIcon/shouye_active_csxr.png",
        icon_wode: "/static/images/tabIcon/wode_active_csxr.png",
        name: "橙事新人",
        name_full: "山东华杰人力资源管理有限公司",
        name_short: "华杰人力",
        site: "https://csxr.cn/",
        phone: "0531-81286002",
        address:"济南市历下区解放路22号燕山大厦4楼(山 东济南人力资源服务产业园)"
      }
    default:
      return {
        id: 'csxr',
        code: 'csxr_xcx',
        theme: "#fcaf4f",
        logo: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo.png",
        logo_authorize: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo_authorize.png",
        logo_login: "https://hjrl-public.oss-cn-qingdao.aliyuncs.com/uniapp/logo.png",
        icon_shouye: "/static/images/tabIcon/shouye_active_csxr.png",
        icon_wode: "/static/images/tabIcon/wode_active_csxr.png",
        name: "橙事新人",
        name_full: "山东华杰人力资源管理有限公司",
        name_short: "华杰人力",
        site: "https://csxr.cn/",
        phone: "0531-81286002",
        address:"济南市历下区解放路22号燕山大厦4楼(山 东济南人力资源服务产业园)"
      }
  }
}
